package com.credit.repository;

import javax.persistence.QueryHint;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.QueryHints;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.credit.entity.CreditPhoneSection;

public interface CreditPhoneSectionDao extends PagingAndSortingRepository<CreditPhoneSection, Long>, JpaSpecificationExecutor<CreditPhoneSection>{

	@QueryHints({ @QueryHint(name = "org.hibernate.cacheable", value = "true") })
	CreditPhoneSection findByPhone(String phone);

}
